package cn.bdqn.service.impl;

import cn.bdqn.dao.AnnouncementMapper;
import cn.bdqn.pojo.Announcement;
import cn.bdqn.service.AnnouncementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 正文
 * @date 2020/6/24 - 17:54
 */
@Service
public class AnnouncementServiceImpl implements AnnouncementService {
    @Autowired
    private AnnouncementMapper announcement;

    @Override
    public List<Announcement> getList() {

        return announcement.getList();
    }

    @Override
    public int add(Announcement auun) {

        return announcement.add(auun);
    }

    @Override
    public List<Announcement> getListById(int id) {

        return announcement.getListById(id);
    }

    @Override
    public int delete(int id) {

        return announcement.delete(id);
    }

    @Override
    public int update(Announcement auun) {

        return announcement.update(auun);
    }
}
